﻿namespace Foundation.Core
{
    public interface ISelectResultFilter : ISelectFilterMetadata
    {
        void OnCreated(SelectResultContext context);
    }

    public class SelectResultContext : SelectExtend, ISelectExtend
    {
        public SelectResultContext(string key, SelectCategory category, List<ISelectItem> items, Type type = null)
        {
            Key = key;
            Category = category;
            Items = items;
            Type = type;
        }

        public string Key { get; }

        public SelectCategory Category { get; }

        public List<ISelectItem> Items { get;}

        public Type Type { get; }
    }
}
